package manage.service;

import manage.domain.User;
import manage.util.Pager;
import org.springframework.web.multipart.MultipartFile;


import javax.servlet.http.HttpServletRequest;

public interface UserService {
    public boolean disabled(User user);
    public boolean remove(Integer id);
    public boolean append(User user, MultipartFile file);
    public boolean isExistByUserName(String username);
    public User login(String username, String password, HttpServletRequest request);
    public User detail(Integer id);
    public Pager<User> list(User condition, Integer page);
}
